package routes

import (
	"github.com/gorilla/mux"
	"net/http"
	"wechat/app/controllers"
)

func RegisterApiRoutes(r *mux.Router)  {
	index := new(controllers.IndexController)
	// Index 路由
	r.HandleFunc("/", index.Index).Methods("GET").Name("index")

	// NotFound 没找到路由
	r.NotFoundHandler = http.HandlerFunc(index.NotFound)
}
